The using directive makes some name qualification optional Using指令使某些名称限定可选:
The most commonly used directive is the 最常用的指令为
Using directives that will enable the identifier to be resolved 指令的列表,这些指令使该标识符可以被解析。
Using directives and references Using指令和引用
Using directive has two uses 指令有两个用途:
You can reference an assembly directly from your code using the using directive , such as 您可以使用# using指令直接从代码引用程序集,如
Using directive to use the types in a namespace without having to specify the namespace 指令,以便在命名空间中使用类型而不必指定命名空间。
Window , type a comment in the comment box to explain the nature of your changes such as " added using directive " and why you made them for example , " to enable calls to the directory class " 在“挂起的更改”窗口中,在“注释”框中键入注释以解释更改的性质(如“已添加using指令” )和做出更改的原因(如“启用对directory类的调用” ) 。